package syntaxTree;

public class MainClass 
{
  public Id className;
  public Id argName;
  public Stm stm;
  
  public MainClass(Id className,Id argName,Stm stm)
  {
    this.className = className;
    this.argName = argName;
    this.stm = stm;
  }
  
  public String toString ()
  {
    String result = "";
    result += "class ";
    result += className.toString () ;
    result += "\n{\n";
    result += "\tpublic static void main ( String []  ";
    result += argName.toString () ;
    result += ")";
    result += "\n\t{\n";
    result += stm.toString();
    result += "\n\t}";
    result += "\n}\n";
    
       return result;
  }
}
